package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from user where phone = #{phone}")
    User selectByPhone(String phone);
    @Insert("insert into user(phone,status) values(#{phone},#{status})")
    void insert(User u);
}
